<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" content="ECSHOP v2.7.3" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="themes/default/js/jquery-1.7.1.js"></script>

<?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,common.js,global.js,compare.js')); ?>
</head>
<body>
<?php echo $this->fetch('library/page_header.lbi'); ?>

<?php echo $this->fetch('library/ad_position.lbi'); ?>


<div class="blank"></div>
<div class="block clearfix">
	<div class="main_select">
		<ul>
			<li>
				<strong>折扣:</strong>
				<a <?php if ($this->_var['integral_max'] == 0 && $this->_var['integral_min'] == 0): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion">全部</a>
				<a <?php if ($this->_var['integral_max'] == 3000): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion&category=<?php echo $this->_var['category']; ?>&integral_min=1&integral_max=3">1-3折</a>
				<a <?php if ($this->_var['integral_max'] == 10000 && $this->_var['integral_min'] == 3001): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion&category=<?php echo $this->_var['category']; ?>&integral_min=4&integral_max=5">4-5折</a>
				<a <?php if ($this->_var['integral_max'] == 20000 && $this->_var['integral_min'] == 10001): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion&category=<?php echo $this->_var['category']; ?>&integral_min=6&integral_max=7">6-7折</a>
				<a <?php if ($this->_var['integral_min'] == 20001): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion&category=<?php echo $this->_var['category']; ?>&integral_min=8&integral_max=9">8-9折</a>
			</li>
			<li class="li_top">
				<strong>分类:</strong>
				<a <?php if (0 == $this->_var['category']): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion&category=0" style="color: #000000">全部</a>
				<?php if ($this->_var['categories']): ?>
				<?php $_from = $this->_var['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');if (count($_from)):
    foreach ($_from AS $this->_var['cat']):
?>
				<a <?php if ($this->_var['cat']['id'] == $this->_var['category']): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion&category=<?php echo $this->_var['cat']['id']; ?>" style="color: #000000"><?php echo $this->_var['cat']['name']; ?></a>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				<?php endif; ?>
			</li>
		</ul>
	</div>
	<div class="main_search">
	<form action="promotion.php?intro=promotion" method="post" name="advancedSearchForm">
		<ul>
			<li>	
				<span class="right">
					<?php echo $this->_var['lang']['pager_1']; ?><b><?php echo $this->_var['pager']['record_count']; ?></b> <?php echo $this->_var['lang']['pager_2']; ?>
					<?php if ($this->_var['pager']['page_prev']): ?><a class="prev" href="<?php echo $this->_var['pager']['page_prev']; ?>"><?php echo $this->_var['lang']['page_prev']; ?></a><?php endif; ?>
					<?php if ($this->_var['pager']['page_next']): ?><a class="next" href="<?php echo $this->_var['pager']['page_next']; ?>"><?php echo $this->_var['lang']['page_next']; ?></a><?php endif; ?>
				</span>
				<label>关键字:</label>
				<input type="hidden" name="integral_min" value="<?php echo $this->_var['integral_min']; ?>"/>
				<input type="hidden" name="integral_max" value="<?php echo $this->_var['integral_max']; ?>"/>
				<input type="hidden" name="category" value="<?php echo $this->_var['category']; ?>"/>

				<input class="keyword_txt" type="text" name="keywords" maxlength="20"/>
				<input class="search_btn" type="submit" value="搜索"/>
				<span class="clear"></span>
			</li><!--
			<li class="li_top">
				<span>排序:</span>
				<a href="#">销量</a><a href="#">价格</a><a href="#">点击量</a>
			</li>-->
		</ul>
	</form>
	</div>
</div>

<div class="blank5"></div>


<div class="block main_list">
	<div class="main_list">
	<div class="blank5"></div>
		<div class="rs_content border_top">
		 <?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['goods_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['goods_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['goods_list']['iteration']++;
?>
			<?php if ($this->_var['goods']): ?>
			<dl class="left <?php if (( ($this->_foreach['goods_list']['iteration'] - 1) + 1 ) % 4 == 0): ?>mrn<?php endif; ?>">
				<dt><strong><?php echo $this->_var['goods']['goods_name']; ?></strong><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" alt="<?php echo $this->_var['goods']['goods_name']; ?>" /></a></dt>
				<dd>
					<span><?php echo $this->_var['lang']['market_prices']; ?>:<font class="market_s"><?php echo $this->_var['goods']['market_price']; ?></font></span><br />
					<p><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>">去看看</a><?php echo $this->_var['lang']['promote_price']; ?><font class="shop_s"><?php echo $this->_var['goods']['promote_price']; ?></font></p>
				</dd>
			</dl>
			<?php endif; ?>
		 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		</div>
	</div>
</div>


<div class="blank"></div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>
</html>
